﻿using System;
using System.Threading;

namespace ICommonLibrary.Cocurrent {
    
    public class ThreadUtil {

        public static void Sleep(int milliseconds) {
            Sleep(TimeSpan.FromMilliseconds(milliseconds));
        }

        public static void Sleep(TimeSpan timeSpan) {
            try {
                Thread.Sleep(timeSpan);
            }
            catch {
            }
        }


    }
}
